package com.xuecheng.manage_cms.service;

import com.xuecheng.framework.domain.system.SysDictionary;
import com.xuecheng.manage_cms.dao.SysDictionaryRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysDictionaryService {
    @Autowired
    SysDictionaryRepository sysDictionaryRepository;

    //根据typeCode查找课程等级
    public SysDictionary getByTypeCode(String typeCode) {
        SysDictionary sysDictionary = sysDictionaryRepository.findByDType(typeCode);
        return sysDictionary;
    }
}
